package es.agroservicio.Agroservicio.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "clientes")
public class Client implements Serializable{

	@Id
	@Column(name = "Dni")
	@NotEmpty
	@Length(max = 9)
	private String dni;

	@Column(name = "Nombre")
	@NotEmpty
	@Length(max = 100)
	private String name;

	@Column(name = "Apellidos")
	@NotEmpty
	@Length(max = 100)
	private String surname;

	@Column(name = "Direccion")
	@NotEmpty
	@Length(max = 510)
	private String direction;

	@Column(name = "Ciudad")
	@NotEmpty
	@Length(max = 100)
	private String city;

	@Column(name = "Provincia")
	@NotEmpty
	@Length(max = 40)
	private String province;

	@Column(name = "Notas")
	@Length(max = 255)
	private String notes;

	@Column(name = "Cp")
	private int cp;

	@Column(name = "Telefono")
	private int phone;

	@Column(name = "Rol")
	private String role;

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public int getCp() {
		return cp;
	}

	public void setCp(int cp) {
		this.cp = cp;
	}

	public int getPhone() {
		return phone;
	}

	public void setPhone(int phone) {
		this.phone = phone;
	}

	public String getDni() {
		return dni;
	}

	public void setDni(String dni) {
		this.dni = dni;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDirection() {
		return direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}


}
